#include "widget.h"

#include <QApplication>
#include<QGraphicsScene>
#include<QGraphicsView>
#include<QGraphicsItem>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
//    Widget w;
//    w.show();

    QGraphicsScene scene;
    scene.addText("I love Qt programming.",QFont("Times",22,QFont::Bold));
    QGraphicsView view(&scene);
    view.show();

    QGraphicsScene scene2;
    QPainterPath path;
    path.moveTo(30,120);
    path.cubicTo(80,0,50,50,80,80);
    scene2.addPath(path,QPen(Qt::black),QBrush(Qt::green));
    scene2.addText("I love Qt programming.",QFont("Times",15,QFont::Bold));
    QGraphicsView view2(&scene2);
    view2.show();


    return a.exec();
}
